package com.atguigu.mybatis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

//链式调用
@Accessors(chain = true)
@Data
@TableName(value = "tb_major")
public class Major {
    @TableId(type = IdType.AUTO)
    private int id;
    private String name;
    private int collegeId;

}
